You are here: Symbol Reference > Dew Namespace > Dew.Math Namespace > Classes > TVec Class > TVec Methods > TVec.AutoCorrUnBiased Method
Dew Math for .NET
ContentsIndexHome
PreviousUpNext
TVec.AutoCorrUnBiased Method

Unbiased auto-correlation.

Syntax
C#
Visual Basic
public TVec AutoCorrUnBiased([In] TVec Vec, int Lags, [In] TVecInt Buffer);

Calculate the unbiased auto-correlation of the vector Vec. The result of Length = Lags is stored in the calling vector (V). The Lags parameter must be equal or smaller than the calling vector (V) length. The unbiased auto-correlation is defined by the following equation: 

 

 

The Buffer parameter allows the same work memory to be used between consecutive calls to this and other functions. The Buffer object will not be resized, if sufficient memory is present.

using Dew.Math; using Dew.Math.Units; namespace Dew.Examples { void Example() { TVec a,b; MtxVec.CreateIt(out a, aut b); try { a.SetIt(false, new double[] {1,2,3,4}); b.AutoCorrUnBiased(a,2); } finally { MtxVec.FreeIt(ref a, ref b); } } }
Copyright (c) 1999-2024 by Dew Research. All rights reserved.
What do you think about this topic? Send feedback!